#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int i = 0;
	int j = 0;
	while (scanf("%d", &i) == 1 && scanf("%d", &j) == 1)
	{
		int t = 0;
		for (t = 0; t <= i-1; t++)
			printf("*");
		printf("\n");
		for (t = 0; t <= j-1; t++)
			printf("*");
			printf("\n");
	}


	return 0;
}